home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsISSLSocketControl.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  144 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsISSLSocketControl.idl
  3.  */
  4.  
  5. #ifndef __gen_nsISSLSocketControl_h__
  6. #define __gen_nsISSLSocketControl_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIInterfaceRequestor; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsISSLSocketControl */
  21. #define NS_ISSLSOCKETCONTROL_IID_STR "8b3e8488-1dd2-11b2-b547-956290be347c"
  22.  
  23. #define NS_ISSLSOCKETCONTROL_IID \
  24.   {0x8b3e8488, 0x1dd2, 0x11b2, \
  25.     { 0xb5, 0x47, 0x95, 0x62, 0x90, 0xbe, 0x34, 0x7c }}
  26.  
  27. class NS_NO_VTABLE nsISSLSocketControl : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISSLSOCKETCONTROL_IID)
  31.  
  32.   /* attribute nsIInterfaceRequestor notificationCallbacks; */
  33.   NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) = 0;
  34.   NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallbacks) = 0;
  35.  
  36.   /* attribute boolean forceHandshake; */
  37.   NS_IMETHOD GetForceHandshake(PRBool *aForceHandshake) = 0;
  38.   NS_IMETHOD SetForceHandshake(PRBool aForceHandshake) = 0;
  39.  
  40.   /* void proxyStartSSL (); */
  41.   NS_IMETHOD ProxyStartSSL(void) = 0;
  42.  
  43.   /* void StartTLS (); */
  44.   NS_IMETHOD StartTLS(void) = 0;
  45.  
  46. };
  47.  
  48. /* Use this macro when declaring classes that implement this interface. */
  49. #define NS_DECL_NSISSLSOCKETCONTROL \
  50.   NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks); \
  51.   NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallbacks); \
  52.   NS_IMETHOD GetForceHandshake(PRBool *aForceHandshake); \
  53.   NS_IMETHOD SetForceHandshake(PRBool aForceHandshake); \
  54.   NS_IMETHOD ProxyStartSSL(void); \
  55.   NS_IMETHOD StartTLS(void); 
  56.  
  57. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  58. #define NS_FORWARD_NSISSLSOCKETCONTROL(_to) \
  59.   NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) { return _to GetNotificationCallbacks(aNotificationCallbacks); } \
  60.   NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallbacks) { return _to SetNotificationCallbacks(aNotificationCallbacks); } \
  61.   NS_IMETHOD GetForceHandshake(PRBool *aForceHandshake) { return _to GetForceHandshake(aForceHandshake); } \
  62.   NS_IMETHOD SetForceHandshake(PRBool aForceHandshake) { return _to SetForceHandshake(aForceHandshake); } \
  63.   NS_IMETHOD ProxyStartSSL(void) { return _to ProxyStartSSL(); } \
  64.   NS_IMETHOD StartTLS(void) { return _to StartTLS(); } 
  65.  
  66. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  67. #define NS_FORWARD_SAFE_NSISSLSOCKETCONTROL(_to) \
  68.   NS_IMETHOD GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNotificationCallbacks(aNotificationCallbacks); } \
  69.   NS_IMETHOD SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallbacks) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetNotificationCallbacks(aNotificationCallbacks); } \
  70.   NS_IMETHOD GetForceHandshake(PRBool *aForceHandshake) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetForceHandshake(aForceHandshake); } \
  71.   NS_IMETHOD SetForceHandshake(PRBool aForceHandshake) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetForceHandshake(aForceHandshake); } \
  72.   NS_IMETHOD ProxyStartSSL(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProxyStartSSL(); } \
  73.   NS_IMETHOD StartTLS(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->StartTLS(); } 
  74.  
  75. #if 0
  76. /* Use the code below as a template for the implementation class for this interface. */
  77.  
  78. /* Header file */
  79. class nsSSLSocketControl : public nsISSLSocketControl
  80. {
  81. public:
  82.   NS_DECL_ISUPPORTS
  83.   NS_DECL_NSISSLSOCKETCONTROL
  84.  
  85.   nsSSLSocketControl();
  86.  
  87. private:
  88.   ~nsSSLSocketControl();
  89.  
  90. protected:
  91.   /* additional members */
  92. };
  93.  
  94. /* Implementation file */
  95. NS_IMPL_ISUPPORTS1(nsSSLSocketControl, nsISSLSocketControl)
  96.  
  97. nsSSLSocketControl::nsSSLSocketControl()
  98. {
  99.   /* member initializers and constructor code */
  100. }
  101.  
  102. nsSSLSocketControl::~nsSSLSocketControl()
  103. {
  104.   /* destructor code */
  105. }
  106.  
  107. /* attribute nsIInterfaceRequestor notificationCallbacks; */
  108. NS_IMETHODIMP nsSSLSocketControl::GetNotificationCallbacks(nsIInterfaceRequestor * *aNotificationCallbacks)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112. NS_IMETHODIMP nsSSLSocketControl::SetNotificationCallbacks(nsIInterfaceRequestor * aNotificationCallbacks)
  113. {
  114.     return NS_ERROR_NOT_IMPLEMENTED;
  115. }
  116.  
  117. /* attribute boolean forceHandshake; */
  118. NS_IMETHODIMP nsSSLSocketControl::GetForceHandshake(PRBool *aForceHandshake)
  119. {
  120.     return NS_ERROR_NOT_IMPLEMENTED;
  121. }
  122. NS_IMETHODIMP nsSSLSocketControl::SetForceHandshake(PRBool aForceHandshake)
  123. {
  124.     return NS_ERROR_NOT_IMPLEMENTED;
  125. }
  126.  
  127. /* void proxyStartSSL (); */
  128. NS_IMETHODIMP nsSSLSocketControl::ProxyStartSSL()
  129. {
  130.     return NS_ERROR_NOT_IMPLEMENTED;
  131. }
  132.  
  133. /* void StartTLS (); */
  134. NS_IMETHODIMP nsSSLSocketControl::StartTLS()
  135. {
  136.     return NS_ERROR_NOT_IMPLEMENTED;
  137. }
  138.  
  139. /* End of implementation class template. */
  140. #endif
  141.  
  142.  
  143. #endif /* __gen_nsISSLSocketControl_h__ */
  144.